package com.bjpowernode.services.impls;

import com.bjpowernode.entities.TPermission;
import com.bjpowernode.mappers.TPermissionMapper;
import com.bjpowernode.services.PermissionService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionServiceImpl implements PermissionService {
    @Resource
    TPermissionMapper tPermissionMapper;

    @Override
    public List<TPermission> getMenuPermissionList(Integer userId) {
        return tPermissionMapper.selectMenuPermissionListByUserId(userId);
    }
}
